import { createPinia } from "pinia";
import piniaPluginPersistedState from 'pinia-plugin-persistedstate'
import useAppStore from './modules/app'

export const pinia = createPinia();

pinia.use(piniaPluginPersistedState)

export default function useStore() {
    return {
        app: useAppStore()
    }
}